package com.unhz.taigu.service;

import com.unhz.generator.pojo.InsoleImage;
import org.springframework.stereotype.Repository;
import org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletRequest;
import java.util.List;


/**
 * @Author: 王林恩
 * @Description:
 * @Date: Created in 下午 2:25 2018/1/30 0030
 * @Modified By:
 */
@Repository
public interface InsoleImageService {

    InsoleImage selectOne();

    int addInsoleImage(InsoleImage insoleImage);

    /**
     * 保存中底图片
     * @param insoleId
     * @param insoleImg
     * @param request
     */
    void insertInsoleImage(Integer insoleId, MultipartFile[] insoleImg, HttpServletRequest request);

    /**
     * 根据中底id获得中底图片
     * @param insoleId
     * @return
     */
    List<InsoleImage> selectInsoleImageList(Integer insoleId);

    /**
     * 添加中底图片
     * @param pojo
     * @return
     */
    int insertSelective(InsoleImage pojo);

    /**
     * 删除中底图片
     * @param insoleId
     */
    void deleteInsoleImage(Integer insoleId);
}
